﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ListenMusic.Country_ServiceReference;

using ListenMusic.Models.ViewModel;
using System.ServiceModel;
namespace ListenMusic.Models.Reposistory.Public
{
    public class CountryReposistory
    {
        CountryServiceClient countryClient;       
        public CountryReposistory()
        {
            countryClient = new CountryServiceClient();           
        }
        public List<Country> getAllCountry()
        {
            try {
                Country[] country = countryClient.getAllCountry();
                return country.ToList();
            }
            catch (FaultException e) { throw e; }
        }
    }
}